package com.hsl.housaileibot001.model;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * Refresh Token实体类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@TableName("refresh_token")
@Schema(description = "Refresh Token")
public class RefreshToken extends BaseEntity {

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * Refresh Token值
     */
    @Schema(description = "Refresh Token值")
    private String token;

    /**
     * 过期时间
     */
    @Schema(description = "过期时间")
    private LocalDateTime expiresAt;

    /**
     * 设备信息
     */
    @Schema(description = "设备信息")
    private String deviceInfo;
}

